package com.hfc.test.dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hfc.test.dubbo.service.SayHelloService;

public class Consumer {

	public static void main(String[] args) throws Exception {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "classpath:spring/applicationContext-dubbo-consumer.xml" });
		context.start();
		SayHelloService say = (SayHelloService)context.getBean("sayHelloImplConsumer");
		say.sayHello();
	}
}
